
import request from "../utils/request";

    //登录api
export function loginApi(body){

    return    request('/users/login',{
        method:'post',
        body
      })
}


//添加账户api
export function addaccountApi(body){

    return    request('/users/addOrEditAccount',{
        method:'post',
        body
      })
}

//账户列表
export const  accountListApi=(body={pageSize:10,pageNumber:1})=>request("/users/getAccountList",{
    method:"post",
    body
})

//删除
export function delAccountApi(_id){
    return request("/users/delAccount?id="+_id,{
        method:"delete",})

}

//保存当前登录人的个人信息
export const  uplodeuseInfoApi=(body)=>request("/users/saveUserInfo",{
    method:"post",
    body
})

// 获取当前登录人的信息
export const  getUserInfoApi=()=>request("/users/getUserInfo",{})
